{extend name='user/public/layout' /}
{block name='content'}
<div class="overflow_h">
    <div class="screen">
        <div class="screen_box01 overflow_h">
            <ul>
                <li><a href="{:url('user.store/index')}" class="on">店铺设置</a></li>
            </ul>
        </div>
    </div>
    <div class="user-nav">
        <form id="info_form" action="{:url('user.store/editDo')}" method="post" enctype="multipart/form-data">
            <div class="con_div">
                <ul class="formList width2 list_ul">
                    <li>
                        <label>店铺名称：</label>
                        <input type="text"  name="title" id="J_title" value="{$info.title}" class="inputStyle width3">
                    </li>
                    <li class="height1"><label>SEO标题：</label><textarea class="textarea" name="seo_title">{$info.seo_title}</textarea></li>
                    <li class="height1"><label>SEO关键词：</label><textarea class="textarea" name="seo_keys">{$info.seo_keys}</textarea></li>
                    <li class="height1"><label>SEO描述：</label><textarea class="textarea" name="seo_desc">{$info.seo_desc}</textarea></li>
                    <li style="margin-bottom: 5px;"><label>店铺介绍：</label></li>
                    <li class="height2">
                        <textarea name="content" id="info" style="width:850px;height:500px;resize: none;float:left">{$info.content}</textarea>
                    </li>
                    <input type="hidden" name="id" value="{$info.id}">
                    <li>
                        <label></label>
                        <input type="submit" value="提 交" class="btnStyle">
                    </li>
                </ul>
            </div>
        </form>
    </div>
</div>
<script src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__PUBLIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__PUBLIC__/js/ueditor/';
    window.onload=function(){
        window.UEDITOR_CONFIG.initialFrameWidth=880;
        window.UEDITOR_CONFIG.initialFrameHeight=500;
        var ue = UE.getEditor('info', {
            toolbars: [[
                'fullscreen', 'source', '|',
                'bold', 'italic', 'underline', '|', 'fontfamily','fontsize', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', 'insertimage','|', 'kityformula', 'preview'
            ]]
        });
    };
    $(function(){
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_title").formValidator({onshow:"请填写店铺名称",onfocus:"请填写店铺名称"}).inputValidator({min:1,onerror:"请填写店铺名称"}).defaultPassed();

    });

</script>
{/block}